<?php

declare(strict_types=1);
/**
 * @copyright 深圳市易果网络科技有限公司
 * @version 1.0.0
 * @link https://dayiguo.com
 */

namespace App\Request\Business\Coupon;

use App\Request\RequestAbstract;

/**
 * 获取商家优惠券列表验证器
 *
 * @author 李想(928674263@qq.com)
 * @package App\Request\Business\Coupon
 */
class GetBusinessCouponListRequest extends RequestAbstract
{
    /**
     * Determine if the user is authorized to make this request.
     */
    public function authorize(): bool
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     */
    public function rules(): array
    {
        return [
            'type' => 'required|in:1,2',
        ];
    }
}